package thread;

import java.util.concurrent.SynchronousQueue;

public class WriteThread1 extends Thread {
	Message obj;
	public WriteThread1(Message obj){
		this.obj = obj;
	}
	@Override
	public void run(){
		synchronized(obj){
			if(!obj.status){
				try{
					obj.wait();
				}catch(Exception ex){
					
				}
			}
			System.out.println("저장된 데이터를 출력");
			System.out.println(obj.getMsg());
		}
	}
}
